package org.chen.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("rate_limiter_config")
public class RateLimiterConfig extends Model<RateLimiterConfig> {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("config_key")
    private String configKey;
    @TableField("config_value")
    private Integer configValue;
    private String description;
    @TableField(value = "create_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}